{% extends "@XiaoZhu/art.html.twig" %}

{% block siteLocation %}
    <li><a href="{{ path('shophome') }}">首页</a></li>
    <li>小主文苑</li>
    <li class="active">{{ className }}</li>
{% endblock %}
{% block articleLeft %}
    <div class="col-md-10 col-sm-9">
        <div class="content-page">
            {% for art in lists %}
                <div class="col-lg-6 col-md-6 col-xs-12">
                    <div class="product-myitem1">
                        <div class="product-item-img">
                            <a href="{{ path('showArticle' , {'id':art.id}) }}"><img src="{{ art.cover }}" style="width: 100%; padding: 10px"></a>
                        </div>
                        <div class="product-item-info" style="width: 100%; padding-left: 10px">
                            <div class="title"><a href="{{ path('showArticle' , {'id':art.id}) }}">{{ art.title }}</a></div>
                            <div class="metas clearfix">
                                <p>{{ art.introduction }}</p>
                            </div>
                        </div>
                    </div>
                </div>
            {% endfor %}
            <div class="clear"></div>
            <div class="btn-group">
                <div class="btn dark">每页 {{ pagination.perPage }} 条 共 {{ pagination.total }} 条</div>
            </div>
            {{ pagination.page | raw}}
        </div>
    </div>
{% endblock %}